package com.freight.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "order_documentary")
@TableName("order_documentary")
@ApiModel(value = "跟单记录")
public class Documentary extends FreightBaseEntity {

    @ApiModelProperty(value = "关联数据id")
    private Long operationId;

    @ApiModelProperty(value = "跟单内容")
    private String content;

    @ApiModelProperty(value = "图片文件id")
    private Long enclosureId;

    @ApiModelProperty(value = "1订单 2运单 3账单")
    private String type;

    @ApiModelProperty(value = "1人工 2状态流转日志")
    private String operationType = "1";

}
